const mongoose = require('mongoose')
mongoose.connect('mongodb://localhost:27017/element-demo', {
  useNewUrlParser: true,
  useFindAndModify: true,
  useCreateIndex: true,
  useUnifiedTopology: true
})
const schema = new mongoose.Schema({
  id:{
    type:Number
  },
  username: {
    type: String
  },
  tel: {
    type: String
  }
},{
  timestamps:true
})
const UserList = mongoose.model('UserList',schema)

module.exports = {
  UserList
}